/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package papacharly.encheres.examples;

import java.util.List;
import papacharly.encheres.dao.UserService;
import papacharly.encheres.log.Logger;
import papacharly.encheres.model.User;

/**
 *
 * @author user01
 */
public class Main_bdd {

    private static Logger log = Logger.getLogger("Main");

     public static void main(String args[]) {
        log.info(".main");

        List<User> userList = null;
        userList = UserService.getInstance().getAll();

        if (userList == null) {
            log.warn(".main - userList = null");
        } else {
            log.info(".main - User receive : " + userList.size());
            for (int i = 0; i < userList.size(); i++) {
                User user = userList.get(i);
                System.out.println("userList[" + i + "]=" + user);
            }
        }
    }
}
